package net.cyndeline.xml

import scala.xml.Node

/**
 * Parses a single value tag, and returns a value
 * based on it.
 */
trait Amount extends XMLKey {
  
  /**
   * Parses a value XML tag into a single integer value.
   */
  def parse(amount: Node): Int
}